/**
 * 
 */
package br.com.skynix.tcmc.base.excecao;

import javax.faces.context.ExceptionHandler;
import javax.faces.context.ExceptionHandlerFactory;

/**
 * @author mgrb
 * 
 */
public class SkynixExceptionHandlerFactory extends ExceptionHandlerFactory {

	private ExceptionHandlerFactory parent;

	/**
	 * 
	 */
	public SkynixExceptionHandlerFactory(ExceptionHandlerFactory parent) {
		this.parent = parent;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see javax.faces.context.ExceptionHandlerFactory#getExceptionHandler()
	 */
	@Override
	public ExceptionHandler getExceptionHandler() {
		return new SkynixExceptionHandlerWrapper(parent.getExceptionHandler());
	}

}
